package com.weixiao.repository;

import com.weixiao.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * author 韩诚
 * date 2022/9/20 10:58
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    /**
     * 根据医院编号，科室编号，获取科室信息
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
